From 5460b89bb9629fc28b1f69558daf6963d938ead0 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 May 2003 02:14:49 +0000 Subject: [PATCH] Don't call mkshort twice for ANYNAME. Fix for Rick. --- gpsbabel/csv_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index f9ef04814..a89bcfe37 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -639,10 +639,7 @@ xcsv_waypt_pr(const waypoint *wpt) anyname = xstrdup(""); if ((anyname) && (global_opts.synthesize_shortnames)) { - char *oldname = anyname; - anyname = mkshort(xcsv_file.mkshort_handle, - wpt->notes ? wpt->notes : wpt->description); - xfree(oldname); + anyname = xstrdup(shortname); } sprintf(buff, fmp->printfc, anyname); -- 2.30.2